package cn.wwcyc.exception;

import lombok.Data;


public enum WWExceptionEnum {
    SYSTEM_ERROR(50000, "系统异常！"),
    NEED_USERNAME(20001, "用户名不能为空！"),
    ERROR_USERNAME_PASSWORD(20002, "用户名或密码错误！"),
    PASSWORD_TOO_SHORT(20003, "密码不能小于3位！"),
    AUTHORITION_FAIL(20004, "认证失败！"),
    USER_NOT_EXISTED(20005, "用户不存在！"),
    YJSS_TOOMANY(20006, "油井查出多个！"),
    AUTHORITION_EXPIRE(20007, "认证超时！"),
    ERROR_PASSWORD(20008, "密码错误！" ),
    USERNAME_EXIST(20009,"用户名已经存在！" ),
    DW_NOT_EXIST(20010, "单位不存在！"),
    DATE_ERROR(20011, "日期错误！"),
    FILEFOMMAT_ERROR(21000, "文件格式错误！"),
    NO_FILE(21001, "无此文件！"),
    FILE_ALREADYEXISTED(21002, "文件已经存在！"),
    FILE_CREATING(21003, "文件正在生成！"),
    FILENAME_ERROR(21005, "文件名错误！"),

//    ZB_FILE_CREATING(21006, "文件正在创建！");
    MODBUS_ERROR(22001, "Modbus错误！"),
    BATCHTJ_ERROR(22002, "批量停机错误！"),
    YEWU_TYPE_ERROR(23001, "业务类型错误！"),
    HSY_CONFIG_ERROR(24001, "含水仪配置错误！"),
    BJ_ALREADY_CONFIRM(25001, "该报警已经被其他人确认！"),
    BJ_ALREADY_CZ(25002, "该报警已经被其他人处置！")
   ;

    Integer code;
    String message;

    WWExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
